package com.yyq.eduservice.client;

import com.yyq.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author yyq
 * @create 2021-04-21 21:22
 */
@Component
@FeignClient(name = "service-vod",fallback = VodclientImp.class) //远程请求服务的名称（配置文件　和　熔断调用函数
public interface Vodclient {
    //删除阿里云云端视频
    @DeleteMapping("/eduvod/upfile/deleteVideo/{id}")
    public R deleteVideo(@PathVariable("id") String id);

    //根据ｉｄ集合删除云端多个阿里云视频
    @DeleteMapping("/eduvod/upfile/deleteMoreALiYunVideo")
    public R deleteMoreALiYunVideo(@RequestParam("VideoList") List<String> VideoList);
}
